<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Signature Algorithms</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="openssl.pkcs7.flags.html">PKCS7 Flags/Constants</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="openssl.ciphers.html">Ciphers</a></div>
 <div class="up"><a href="openssl.constants.html">预定义常量</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="openssl.signature-algos" class="section">
   <h2 class="title">Signature Algorithms</h2>
   <dl>

    
     <dt id="constant.openssl-algo-dss1">
      <strong><code>OPENSSL_ALGO_DSS1</code></strong> 
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
     </dt>

     <dd>

      <span class="simpara">

      </span>
     </dd>

    
    
     <dt id="constant.openssl-algo-sha1">
      <strong><code>OPENSSL_ALGO_SHA1</code></strong> 
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
     </dt>

     <dd>

      <span class="simpara">
       Used as default algorithm by <span class="function"><a href="function.openssl-sign.html" class="function">openssl_sign()</a></span> and
       <span class="function"><a href="function.openssl-verify.html" class="function">openssl_verify()</a></span>.
      </span>
     </dd>

    
    
     <dt id="constant.openssl-algo-sha224">
      <strong><code>OPENSSL_ALGO_SHA224</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
     </dt>

     <dd>

      <span class="simpara">

      </span>
     </dd>

    
    
     <dt id="constant.openssl-algo-sha256">
      <strong><code>OPENSSL_ALGO_SHA256</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
     </dt>

     <dd>

      <span class="simpara">

      </span>
     </dd>

    
    
     <dt id="constant.openssl-algo-sha384">
      <strong><code>OPENSSL_ALGO_SHA384</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
     </dt>

     <dd>

      <span class="simpara">

      </span>
     </dd>

    
    
     <dt id="constant.openssl-algo-sha512">
      <strong><code>OPENSSL_ALGO_SHA512</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
     </dt>

     <dd>

      <span class="simpara">

      </span>
     </dd>

    
    
     <dt id="constant.openssl-algo-rmd160">
      <strong><code>OPENSSL_ALGO_RMD160</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
     </dt>

     <dd>

      <span class="simpara">

      </span>
     </dd>

    
    
     <dt id="constant.openssl-algo-md5">
      <strong><code>OPENSSL_ALGO_MD5</code></strong> 
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
     </dt>

     <dd>

      <span class="simpara">

      </span>
     </dd>

    
    
     <dt id="constant.openssl-algo-md4">
      <strong><code>OPENSSL_ALGO_MD4</code></strong> 
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
     </dt>

     <dd>

      <span class="simpara">

      </span>
     </dd>

    
    
     <dt id="constant.openssl-algo-md2">
      <strong><code>OPENSSL_ALGO_MD2</code></strong> 
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
     </dt>

     <dd>

      <span class="simpara">
       As of PHP 5.2.13 and PHP 5.3.2, this constant is only available 
       if PHP is compiled with MD2 support. This requires passing in the 
       -DHAVE_OPENSSL_MD2_H CFLAG when compiling PHP, and enable-md2 when 
       compiling OpenSSL 1.0.0+.
      </span>
     </dd>

    
   </dl>


   <blockquote class="note"><p><strong class="note">Note</strong>: 
    <p class="para">These constants were added in 5.0.0.</p>
    <p class="para">
     <strong><code>OPENSSL_ALGO_MD2</code></strong>, <strong><code>OPENSSL_ALGO_MD4</code></strong>,
     <strong><code>OPENSSL_ALGO_MD5</code></strong>, <strong><code>OPENSSL_ALGO_SHA1</code></strong>,
     <strong><code>OPENSSL_ALGO_DSS1</code></strong>
    </p>
   </p></blockquote>
   <blockquote class="note"><p><strong class="note">Note</strong>: 
    <p class="para">These constants were added in 5.4.8.</p>
    <p class="para">
     <strong><code>OPENSSL_ALGO_RMD160</code></strong>, <strong><code>OPENSSL_ALGO_SHA224</code></strong>,
     <strong><code>OPENSSL_ALGO_SHA256</code></strong>, <strong><code>OPENSSL_ALGO_SHA384</code></strong>,
     <strong><code>OPENSSL_ALGO_SHA512</code></strong>
    </p>
   </p></blockquote>

  </div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="openssl.pkcs7.flags.html">PKCS7 Flags/Constants</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="openssl.ciphers.html">Ciphers</a></div>
 <div class="up"><a href="openssl.constants.html">预定义常量</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
